package cn.wen233.srpc.core.server.handletask;

import cn.wen233.srpc.basic.execute.Executor;
import cn.wen233.srpc.core.execute.ServerExecutor;
import cn.wen233.srpc.core.service.spi.SPIContext;

/**
 * 处理任务基类
 * 服务处理请求的任务
 *
 * @author wenei
 * @date 2021-10-29 15:42
 */
public abstract class AbstractTask implements Runnable {

    /**
     * 获取服务端的默认处理器
     */
    protected static final Executor SERVER_EXECUTOR = SPIContext.loadSingleService(ServerExecutor.class);

}
